//
//  FirstDetailsTableViewCell.m
//  Fragrance
//
//  Created by yinzhongyuan on 15/5/25.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "FirstDetailsTableViewCell.h"

@implementation FirstDetailsTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createMyView];
    }
    return self;
}

- (void)createMyView
{
    self.piture = [[[UIImageView alloc] init] autorelease];
    [self.contentView addSubview:self.piture];
    
    self.nameLabel = [[[UILabel alloc]init] autorelease];
    [self.contentView addSubview:self.nameLabel];
    
    self.yongliao = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.yongliao];
    
    self.savenum = [[[UILabel alloc] init] autorelease];
    [self.contentView addSubview:self.savenum];
    
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    self.piture.frame = CGRectMake(0, 5, 100, 100);
    
    
    self.nameLabel.frame = CGRectMake(105, 10, self.contentView.frame.size.width - 105, 25);
    self.nameLabel.backgroundColor = [UIColor clearColor];
    self.nameLabel.textColor = [UIColor blackColor];
    self.nameLabel.font = [UIFont systemFontOfSize:15.0];
    
    
    self.yongliao.frame = CGRectMake(105, 40, self.contentView.frame.size.width - 105, 25);
    self.yongliao.backgroundColor = [UIColor clearColor];
    self.yongliao.font = [UIFont systemFontOfSize:13.0];
    self.yongliao.textColor = [UIColor lightGrayColor];
    
    
    self.savenum.frame = CGRectMake(105, 70, self.contentView.frame.size.width - 105, 25);
    self.savenum.backgroundColor = [UIColor clearColor];
    self.savenum.textColor = [UIColor lightGrayColor];
    self.savenum.font = [UIFont systemFontOfSize:13.0];
}










- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
